<%--
  Created by IntelliJ IDEA.
  User: aaa
  Date: 2024/6/27
  Time: 1:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    #content {
        border: black solid 5px;
        width: 1100px;
        height: 800px;
        margin-top: -280px;
        margin-left: 230px;
        color: grey;
        font-size: 50px;
    }

    .firstHang {
        text-align: center;
        border: none;
    }

</style>
<body>
<div id="content">
    <table border="1" cellspacing="0" align="center" class="con-b" width="100%">


        <%--标题--%>
        <tr class="row" style="color: black;font-size: 25px">
            <td class="lf">老师账户</td>
            <td class="lf">老师姓名</td>
            <td class="lf">性别</td>
            <td class="lf">科目</td>
            <td class="lf">我的题目</td>
            <td class="lf">操作</td>

        </tr>

        <%--具体内容--%>
        <tbody>
        <c:forEach items="${userList}" var="user">
            <tr class="row" style="color: black;font-size: 25px">
                <td class="lf">${user.getUserAccount()}</td>
                <td class="lf">${user.getUserName()}</td>
                <td class="lf">${user.getUserSex()}</td>
                <td class="lf">${user.getUserOtherName()}</td>
                <td><input type="button" value="查看详情" onclick="goMyTask('${user.getUserAccount()}')"></td>
                <td><input type="button" value="删除" onclick="deleteThisPerson('${user.getUserAccount()}')"></td>
            </tr>
        </c:forEach>
        </tbody>

        <tr></tr>
    </table>
</div>
</body>
<script>
    function goMyTask(teacherAccount){
        window.location.href ="StudentServlet?action=goMyTeaTask&teacherAccount="+teacherAccount;
    }
    function detailTask(studentAccount) {
        window.location.href = "TeacherServlet?action=goStudentTaskDetail&studentAccount=" + studentAccount;
    }

    function deleteThisPerson(teacherAccount) {
        window.location.href ="StudentServlet?action=deleteMyTeacher&teacherAccount="+teacherAccount;
    }

</script>
</html>



